var chart = Highcharts.chart('container', {
    chart: {
        type: 'areaspline'
    },
    title: {
        text: '近一周新增考试'
    },
    legend: {
        layout: 'vertical',
        align: 'left',
        verticalAlign: 'top',
        x: 150,
        y: 100,
        floating: true,
        borderWidth: 1,
        backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
    },
    xAxis: {
        categories: [
            '10-23周日', '10-24周一', '10-25周二', '10-26周三', '10-26周四', '10-28周五', '10-29周六'
        ],
        plotBands: [{ // 标识出周末
            from: 4.5,
            to: 6.5,
            color: 'rgba(68, 170, 213, .2)'
        }]
    },
    yAxis: {
        title: {
            text: '每天新增次数'
        }
    },
    tooltip: {
        shared: true,
        valueSuffix: ' 次'
    },
    plotOptions: {
        areaspline: {
            fillOpacity: 0.3
        }
    },
    series: [{
        name: '每天',
        data: [5, 10, 4, 18, 8, 5, 6]
    }]
});
let left1 = document.querySelector('#left1');
let left2 = document.querySelector('#left2');
let left3 = document.querySelector('#left3');
let left4 = document.querySelector('#left4');
let gongGao = document.querySelector('#fabugonggao');
let sp1 = document.querySelector('#sp1');
let tongZhi = document.querySelector('#tongzhi');
let spClass1 = document.querySelector('.sp1');
let notice = JSON.parse(localStorage.getItem('notice'));


left1.addEventListener('click', function () {
    window.location.href = "ly_examinationPaperClassification.html"
})
left2.addEventListener('click', function () {
    window.location.href = "papermanage.html"
})
left3.addEventListener('click', function () {
    window.location.href = "kaoshiguanli.html"
})
left4.addEventListener('click', function () {
    window.location.href = "reward.html"
})
gongGao.addEventListener('click', function () {
    window.open('AnnouncementEdit.html', '_blank')
})
//复制节点
let pclone = tongZhi.children[3].cloneNode(true);
sp1.innerHTML = notice.titl;
spClass1.innerHTML = notice.content;
tongZhi.insertBefore(pclone, tongZhi.children[4])